package com.smartstate.EMS;

import com.smartstate.EMS.dto.UserDTO;
import com.smartstate.EMS.vo.UserVO;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

@FeignClient(name = "test", path = "/test", fallbackFactory = FeignRequestInterceptorConfig.class)
public interface TestClient {
  @ApiOperation(value = "测试")
  @RequestMapping(value = "/query", method = RequestMethod.POST)
  List<UserVO> test(@RequestBody UserDTO item);
}
